Let's add the loop that will draw the spiral! Click on the PYTHON tab in the toolkit to find the Loops section.

  • Go to and drag out Loop with Range.
  • Go to and drag out Move Forward. Drop it INSIDE the for loop.

To put a line of code inside a loop, it must be indented four spaces.

You'll see a purple block ····¬ next to any code that is correctly indented.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)